package com.yanqu.road.entity.activity.goodsLimit;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.DataStatus;
import com.yanqu.road.entity.FieldTypeAnnotation;

/**
 * 道具使用上限
 */
@FieldTypeAnnotation(tableName = "t_u_goods_limit_data")
public class GoodsLimitData extends DataObject {

    @FieldTypeAnnotation(select = true, update = true)
    private long userId;

    @FieldTypeAnnotation(select = true, update = true)
    private int goodsId;

    @FieldTypeAnnotation(desc = "活动id")
    private int activityId;

    @FieldTypeAnnotation(desc = "使用数量")
    private long count;

    @FieldTypeAnnotation(desc = "更新时间")
    private long updateTime;

    public long getUserId() {
        return userId;
    }
    public void setUserId(long userId) {
        if (this.userId != userId) {
            this.userId = userId;
            setOp(DataStatus.Update);
        }
    }

    public int getGoodsId() {
        return goodsId;
    }
    public void setGoodsId(int goodsId) {
        if (this.goodsId != goodsId) {
            this.goodsId = goodsId;
            setOp(DataStatus.Update);
        }
    }

    public int getActivityId() {
        return activityId;
    }
    public void setActivityId(int activityId) {
        if (this.activityId != activityId) {
            this.activityId = activityId;
            setOp(DataStatus.Update);
        }
    }

    public long getCount() {
        return count;
    }
    public void setCount(long count) {
        if (this.count != count) {
            this.count = count;
            setOp(DataStatus.Update);
        }
    }

    public long getUpdateTime() {
        return updateTime;
    }
    public void setUpdateTime(long updateTime) {
        if (this.updateTime != updateTime) {
            this.updateTime = updateTime;
            setOp(DataStatus.Update);
        }
    }


}
